{extend name="public:layout" /}
{block name="title"}{$tableInfo['form_name']}反馈{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-hand-o-right"></i>
                    <a href="{:url('index')}">自定义表单</a>
                </li>
                <li class="active">{$tableInfo['form_name']}反馈</li>
            </ol>
        </div>
        <div class="ibox-content">
            <table class="table">
                <thead>
                <tr>
                    <th>#</th>
                    <th>提交内容</th>
                    <th>回复内容</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="dataList" id="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>
                        {volist name="fieldList" id="v"}
                        {$v.field_title}：{$vo[$v['field_name']]}<br/>
                        {/volist}
                        提交时间： {$vo.create_time|date="Y-m-d H:i:s",###}<br/>
                        IP地址：{$vo.user_ip}<br/>
                    </td>
                    <td>
                        {eq name="vo['reply_time']" value="0"}
                        <span class="label label-warning">未回复</span>
                        {else/}
                        回复时间:{$vo.reply_time|date="Y-m-d H:i:s",###}<br/>
                        回复内容:{$vo.reply_note}
                        {/eq}
                    </td>
                    <td>
                        <a href="javascript:;" onclick="doAction(this);"
                           data-msg="确认删除吗？" data-url="{:url('feedInfoDel')}" data-params="id={$vo.id}&form_id={$tableInfo['form_id']}">删除</a>
                        <a href="{:url('reply',['form_id'=>$tableInfo['form_id'],'id'=>$vo['id']])}">回复</a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            <div class="page-bar">{$dataList->render()}</div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
{/block}